package com.creator.builder;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        Builder builder = new TextBuilder();
        Director director = new Director(builder);

        String result = director.create();
        System.out.println(result);

        builder = new HtmlBuilder();
        director = new Director(builder);
        System.out.println(director.create());
    }
}
